package com.whu.waterworks.service;

import java.util.List;

import com.sun.xml.internal.xsom.impl.scd.Iterators.Map;
import com.whu.waterworks.dao.WaterPlantTypeDao;
import com.whu.waterworks.model.TWaterplantdata;
import com.whu.waterworks.util.GetObjectName;

public class WaterPlantTypeService {
	
	private WaterPlantTypeDao waterPlantTypeDao;

	public WaterPlantTypeDao getWaterPlantTypeDao() {
		return waterPlantTypeDao;
	}

	public void setWaterPlantTypeDao(WaterPlantTypeDao waterPlantTypeDao) {
		this.waterPlantTypeDao = waterPlantTypeDao;
	}
	
	public List<String> getAllType()
	{
		//中英文对应关系
		TWaterplantdata tWaterplantdata = new TWaterplantdata();
		List<String> result = waterPlantTypeDao.getAllType();
		GetObjectName.zuhe(tWaterplantdata, result);
		return result;
	}
	
	public List<String> getAllWaterPlantTypeName()
	{
		
		TWaterplantdata tWaterplantdata = new TWaterplantdata();
		return  GetObjectName.getFiledName(tWaterplantdata);
	}
	

}
